﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using MainEntities;

namespace BusinessApplication1.Views
{
    public partial class AddNewProject : ChildWindow
    {
        public AddNewProject(string nameWindowProject)
        {
            InitializeComponent();
            Title = nameWindowProject;
        }

        public AddNewProject(string nameWindowProject,Project ChangProject)
        {
            InitializeComponent();
            Title = nameWindowProject;
            NametextBox.Text = ChangProject.Name;
            DescriptiontextBox.Text=ChangProject.description;
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void ChildWindow_Closed(object sender, EventArgs e)
        {

        }
    }
}

